package com.mx.tool.form.window.website;

import javax.swing.*;

import static com.mx.tool.enums.WebsiteEnum.*;

/**
 * @Author: 徐建鹏.
 * @create: 2021-11-11 10:59
 * @Description:
 */
public class KjWindow extends WebsiteWindow{
    private JPanel jPanel;
    private JButton springButton;
    private JButton springBootButton;
    private JButton springCloudButton;
    private JButton myBatisButton;
    private JButton myBatisPlusButton;
    private JButton YMPButton1;
    private JButton JFinalButton1;
    private JButton redisButton;
    private JButton saTokenButton;
    private JButton shiroButton;
    private JButton dubboButton;
    private JButton nacosButton;
    private JButton shardingJDBCButton;
    private JButton seataButton;
    private JButton springCloudAlibabaButton;

    public JPanel getContent() {
        return jPanel;
    }

    public KjWindow() {
        springButton.addActionListener(e -> openUrl(SPRING.value()));
        springBootButton.addActionListener(e -> openUrl(SPRINGBOOT.value()));
        springCloudButton.addActionListener(e -> openUrl(SPRINGCLOUD.value()));
        myBatisButton.addActionListener(e -> openUrl(MYBATIS.value()));
        myBatisPlusButton.addActionListener(e -> openUrl(MYBATISPLUS.value()));
        YMPButton1.addActionListener(e -> openUrl(YMP.value()));
        JFinalButton1.addActionListener(e -> openUrl(JFINAL.value()));
        redisButton.addActionListener(e -> openUrl(REDIS.value()));
        saTokenButton.addActionListener(e -> openUrl(SATOKEN.value()));
        shiroButton.addActionListener(e -> openUrl(SHIRO.value()));
        dubboButton.addActionListener(e -> openUrl(DUBBO.value()));
        nacosButton.addActionListener(e -> openUrl(NACOS.value()));
        shardingJDBCButton.addActionListener(e -> openUrl(SHARDINGJDBC.value()));
        seataButton.addActionListener(e -> openUrl(SEATA.value()));
        springCloudAlibabaButton.addActionListener(e -> openUrl(SPRINGCLOUDALIBABA.value()));
    }
}
